﻿/*
* ==============================================================================
*
* FileName: CompanyDto.cs
* Created: 2020/6/08 10:45:49
* Author: Meiam
* Description: 
*
* ==============================================================================
*/
using OfficeOpenXml.FormulaParsing.Excel.Functions.DateTime;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Meiam.System.Model.Dto
{

    /// <summary>
    /// MES数据对象
    /// </summary>
    public class CRMtoATSCustomerCreateDto : PageParm
    {

        /// <summary>
        /// 描述 :  
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "")]
        public string QueryText { get; set; }

    }


    /// <summary>
    /// 条码生成主表
    /// </summary>
    public class CRMtoATSCustomerCreateRequestDto
    {
        /// <summary>
        /// 描述 : 申请单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "custome_code")]
        public string custome_code { get; set; }


    }

    public class ATS_REQ
    {
        public Mbs mbs { get; set; }
    }


    public class Mbs
    {
        public Pub pub { get; set; }
        public Req req { get; set; }
    }

    public class Pub
    {
        public string srcbatchno { get; set; }
        public string checktext { get; set; }
        public string timezone { get; set; }
        public string transcode { get; set; }
        public string transdatetime { get; set; }
        public string srcoutsystemcode { get; set; }
        public string version { get; set; }
        public string licensecode { get; set; }
    }

    public class Req
    {
        public List list { get; set; }
    }

    public class List
    {
        public List<Detail> detail { get; set; }
    }

    public class Detail
    {
        public string code { get; set; }
        public string address { get; set; }
        public string categorycode { get; set; }
        public string orgcode { get; set; }
        public string isactive { get; set; }
        public string description { get; set; }
        public string reconciliationaccount { get; set; }
        public string urid { get; set; }
        public string includesubs { get; set; }
        public string name { get; set; }
        public Accounts accounts { get; set; }
        public string srcoutsystemcode { get; set; }
        public string email { get; set; }
    }

    public class Accounts
    {
        public List<Accountdetail> accountdetail { get; set; }
    }

    public class Accountdetail
    {
        public string agentswiftcode { get; set; }
        public string accountnumber { get; set; }
        public string privateflag { get; set; }
        public string residentcountrycode { get; set; }
        public string isactive { get; set; }
        public string description { get; set; }
        public string currencycode { get; set; }
        public string areacode { get; set; }
        public string agentbankcode { get; set; }
        public string banklocations { get; set; }
        public string accountname { get; set; }
        public string residenttype { get; set; }
        public string certtype { get; set; }
        public string certnumber { get; set; }
        public string agentaccountnumber { get; set; }
        public string cellphone { get; set; }
        public string isdefaultsettlementaccount { get; set; }
        public string eledrafits { get; set; }
        public string cardtype { get; set; }
        public string agentbanklocations { get; set; }
        public string bankcode { get; set; }
        public string agentareacode { get; set; }
        public string regorgcode { get; set; }
        public string cnaps { get; set; }
    }








    /// <summary>
    /// 请求参数
    /// </summary>

    /// <summary>
    /// 
    /// </summary>
    public class CRMtoATSCustomerCreateResponseDto
    {
        /// <summary>
        /// 描述 : 返回行状态 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "code")]
        public int code { get; set; }

        /// <summary>
        /// 描述 : 返回行状态 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "message")]
        public string message { get; set; }
    }



}
